﻿
Partial Class eval_Redirect
    Inherits System.Web.UI.Page

    Protected Sub Page_PreLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.PreLoad
        If Not Me.Request.QueryString("PopUpPage") Is Nothing Then
            Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "redirectPopUp", "window.open('" + Me.Request.QueryString("PopupPage") + "', 'Avac', 'WIDTH=840,HEIGHT=700,SCROLLBARS=yes,left=20,top=20,resizable=no,status=yes');", True)
            Me.Page.ClientScript.RegisterClientScriptBlock(Me.GetType(), "redirectMe", "document.location.href = '" + Me.Request.QueryString("ReturnPage") + "'", True)
        End If
    End Sub

End Class
